package cn.semcorp.zhuhaizj.config;

import com.sun.tracing.dtrace.Attributes;
import org.springframework.amqp.core.Binding;
import org.springframework.amqp.core.BindingBuilder;
import org.springframework.amqp.core.DirectExchange;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Deprecated
//@Configuration
public class RabbitMqConfiguration {

//    public static final String DEMO_EXCHANGE = "demo_exchange";
//    public static final String DEMO_QUEUE = "demo_queue";
//    public static final String DEMO_ROUT = "demo_rout";
//
//    /**
//     * 定义交换机
//     */
//
//    @Bean
//    public DirectExchange directExchange(){
//        return new DirectExchange(DEMO_EXCHANGE);
//    }
//
//    /**
//     * 定义队列
//     */
//    @Bean
//    public Queue queue(){
//        return new Queue(DEMO_QUEUE);
//    }
//
//    /**
//     * 定义关系
//     */
//    @Bean
//    public Binding binding(){
//        return BindingBuilder.bind(queue()).to(directExchange()).with(DEMO_ROUT);
//    }

}
